<template>
	<view>
		<Details :storesData="storesData"></Details>
	</view>
</template>

<script>
	import Details from "../../Components/Details/title.vue"
	import {
		getstores
	} from "../../apis/index.js"
	import {IMAGE_BASE_URL} from '../../config/index.js'
	export default {
		components: {
			Details
		},
		data() {
			return {
				id: "",
				storesData:{},
				imgUrl :IMAGE_BASE_URL

			}
		},
		onLoad(options) {
			console.log(options);
			this.id = options.id
			console.log(this.id);
			this.setstores()
		},
		methods: {
			async setstores(){
				let result = await getstores({
					id : this.id
				})
				console.log(222,"获取单条门店信息",result);
				// result.forEach((item)=>{
				// 	item.service = item.service.substr(0,2)
				// 	item.services = item.services.substr(2,2)
				// })
				this.storesData = result
			}
		}
	}
</script>

<style>

</style>